home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 005 / calm.arc / CALM.DOC < prev   
Encoding:
Text File  |  1986-04-22  |  1.5 KB  |  30 lines

  1. CALM.COM shows the current month and date from the DOS date.  You may
  2. obtain a display for any month from January 1980 to December 2079 by
  3. specifying the month, day and year.
  4.  
  5. CALM shows the current month with the current day marked if called
  6. with no arguments.  The syntax for the argument is mm</dd/<yy>yy>.
  7. Angle brackets indicate optional parameters.  Only the month is
  8. required for any month in the current year.
  9.  
  10. Two or four digits may be supplied for the year.  Two digit years
  11. below 80 are assumed to be 20yy and two digit years above 79 are
  12. assumed to be 19yy.  If you specify a year greater than 2079 or less
  13. than 1980, what you get may not be correct for that month.
  14.  
  15. This program was inspired by an idea in Peter Norton's Programmer's
  16. Guide to the IBMPC, which was a technique for getting the day of the
  17. week from the DOS setdate function for any given day in the DOS date
  18. range.    I further developed this scheme to obtain the number of days
  19. in any month by finding the day of the week for day 1 of any month and
  20. the month following, then adding the week day difference to 28.  Thus
  21. DOS does the hard work in calculating the start day of a month, leap
  22. months and number of days in a month.  I felt a program which
  23. displayed a single month would be useful for meeting scheduling,
  24. vacation planning, etc.  Of course this program could be extended to
  25. display a whole year and optionally send it to a printer, but a number
  26. of programs already exist which do that.
  27.  
  28.  
  29.   Jack Aker - IBM San Jose Test Laboratory
  30.